import axios from "@utils/axios";
import qs from "qs";
// 获取列表
export const getDataList = (data) => {
    const string = qs.stringify(data)
    const url = `/system-set?${string}`
    return axios.get(url);
}
// // 获取列表详情
export const getId = (id) => {
    const url = `/system-set/${id}`
    return axios.get(url)
  }
// 通过账号查询数据
 export const getDataByAccount = (data) =>{
   
    const string = qs.stringify(data)
    const url = `/system-set/?${string}`
    return axios.get(url);
 }

// // 开关控制
// export const switchChange = (checked) => {
//     const string = querystring.stringify(data)
//     const url = `/system-set?${string}`
//     return axios.get(url);
// };